package entity;

public class Const {

    //返回成功
    public static final String RESULT_0 = "0";
    //返回错误
    public static final String RESULT_1 = "1";
    //没有权限
    public static final String RESULT_2 = "2";
    //SESSION超时
    public static final String RESULT_F1 = "-1";

    //接口参数验证时候返回map的key值
    public static final String PARAM_KEY = "check_param";
    public static final String PARAM_RET_KEY = "ret_msg";
    //参数验证正常
    public static final String NOMAL_PARAM = "1";
    //参数验证异常
    public static final String NOT_NOMAL_PARAM = "0";

    //返回成功消息
    public static final String ERROR_MSG_0 = "请求成功";
    //返回错误消息
    public static final String ERROR_MSG_1 = "请求失败";
    //返回token过期信息
    public static final String ERROR_MSG_F1 = "token过期";


    /************************ JWT key *******************************/
    public static final String PRE_TOKEN = "gelpag_";
    //JWT中生成的盐
    public static final String JWT_KEY = ">>>gelpag>>>";
    //token过去时间,单位ms，默认30分钟
    public static final long JWT_EXPIRATION_TIME = 30*60*1000;


    /************************ redis key *******************************/
    public static final String REDIS_HEAD = "gelpag";//base共通头
    public static final String REDIS_HEAD_BASE = REDIS_HEAD+"_"+"base";//base共通头
    public static final String REDIS_HEAD_OPERATION = REDIS_HEAD+"_"+"operation";//operation共通头
    public static final String REDIS_NO_CHECK_URL= "no_check_url";//不验证权限的url  key：固定，value:字符串的urllist
    public static final String REDIS_CHECK_URL= "check_url";//验证权限的url  key：角色id，value：字符串的urllist

    public static final String REDIS_CODELIST= "codelist";//codelist数据开头关键字   key：code_kind，value:对应的codeinfo
    public static final String REDIS_PARAM= "param";//param数据开头关键字   key：params_type，value:对应的params_value
    public static final String REDIS_MENU= "menu";//父菜单对应的子菜单   key：菜单id，value：递归查询的子菜单menuInfo

    public static final String REDIS_ROLE_ID= "role_id";//角色id对应的RoleInfo对象 可以：role_id value ：RoleInfo对象

    public static final int DEFAULT_PAGE_NUM = 1; //默认页数
    public static final int DEFAULT_PAGE_SIZE = 10; //默认页面显示数据条数
}
